package com.vibration.baseinfo.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.vibration.common.annotation.Excel;
import com.vibration.common.core.domain.BaseEntity;

/**
 * 陀螺仪数据对象 cz_gyroscope_data
 * 
 * @author wu
 * @date 2022-08-11
 */
public class CzGyroscopeData extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 设备编号 */
    private String gyroscopeCode;

    @Excel(name = "设备名称")
    private String equipmentName;

    /** X值 */
    @Excel(name = "X值")
    private Double dataX;

    /** Y值 */
    @Excel(name = "Y值")
    private Double dataY;

    /** Z值 */
    @Excel(name = "Z值")
    private Double dataZ;

    /** 数据上传时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "数据上传时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date dataTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setGyroscopeCode(String gyroscopeCode) 
    {
        this.gyroscopeCode = gyroscopeCode;
    }

    public String getGyroscopeCode() 
    {
        return gyroscopeCode;
    }
    public void setDataX(Double dataX)
    {
        this.dataX = dataX;
    }

    public Double getDataX()
    {
        return dataX;
    }
    public void setDataY(Double dataY)
    {
        this.dataY = dataY;
    }

    public Double getDataY()
    {
        return dataY;
    }
    public void setDataZ(Double dataZ)
    {
        this.dataZ = dataZ;
    }

    public Double getDataZ()
    {
        return dataZ;
    }
    public void setDataTime(Date dataTime) 
    {
        this.dataTime = dataTime;
    }

    public Date getDataTime() 
    {
        return dataTime;
    }

    public String getEquipmentName() {
        return equipmentName;
    }

    public void setEquipmentName(String equipmentName) {
        this.equipmentName = equipmentName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("gyroscopeCode", getGyroscopeCode())
            .append("dataX", getDataX())
            .append("dataY", getDataY())
            .append("dataZ", getDataZ())
            .append("dataTime", getDataTime())
            .toString();
    }
}
